package com.jfinal.demo;

import com.jfinal.demo.model.ShoolInfo;
import com.jfinal.demo.model.ShoolInfoDao;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * @author tanghailan
 * @date 2020-12-17 15:36
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
public class test {
    @Test
    public void Test() {
        List<ShoolInfoDao> all = ShoolInfoDao.dao.findAll();
        for (ShoolInfoDao shoolInfo : all) {
            System.out.println("解析到一条数据:"+shoolInfo.toString());
        }
//        System.out.println(all.size());

    }
}
